event_poll.js ➔ votingUrl   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
import VotingUrl from './voting_url'
2
3
class EventPoll {
4
  constructor (id, baseUrl, title, possibleDates) {
5
    this.id = id
6
    this.baseUrl = baseUrl
7
    this.title = title
8
    this.possibleDates = possibleDates
9
  }
10
11
  votingUrl () {
12
    return new VotingUrl(this.baseUrl, this)
13
  }
14
}
15
16
export default EventPoll
17